package Test6.BOOK;

import java.util.Scanner;

public class Book {
    private String name;//书名
    private String author;//作者
    private int price;//价格
    private String Type;//书的类型
    private boolean isBorrowed;//是否被借出-->默认值是false


    public Book() {
    }

    public Book(String name, String author, int price, String Type) {
        this.name = name;
        this.author = author;
        this.price = price;
        this.Type = Type;
    }


    public String getName() {
        return name;
    }


    public void setName(String name) {
        this.name = name;
    }


    public String getAuthor() {
        return author;
    }


    public void setAuthor(String author) {
        this.author = author;
    }


    public int getPrice() {
        return price;
    }


    public void setPrice(int price) {
        this.price = price;
    }

    public String getType() {
        return Type;
    }

    public void setType(String Type) {
        this.Type = Type;
    }


    public boolean isIsBorrowed() {
        return isBorrowed;
    }

    public void setIsBorrowed(boolean isBorrowed) {
        this.isBorrowed = isBorrowed;
    }

    public String toString() {
        return "Book{name = " + name + ", author = " + author + ", price = " + price + ", Type = " + Type + ", isBorrowed = " + isBorrowed + "}";
    }



}
